'use strict';

const Service = require('egg').Service;

class home extends Service {
    async index(pagenumber) {
        const { ctx } = this;
        const sql = `select * from hot where page="${pagenumber}"`
        const res = await this.app.mysql.query(sql)
        return res
    }
}

module.exports = home;